package com.alb.httpserver.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class PingController {

    @GetMapping("/http-server/ping")
    public String ping() throws InterruptedException {
        return "pong";
    }

    @GetMapping("/log/test")
    public String logTest(){
        return "日志处理逻辑!";
    }

    @GetMapping("/query/test")
    public String queryTest(){
        return "数据库服务逻辑!";
    }
}
